﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 盘点单明细表实体类，对应数据库表 dbo.wh_stock_take_detail
    /// </summary>
    public class WhStockTakeDetail
    {
        /// <summary>
        /// 盘点单明细ID（主键）
        /// </summary>
        [Key]
        public long InventoryOrderDetailId { get; set; }

        /// <summary>
        /// 盘点单ID（外键，关联 WhStockTake.InventoryOrderId）
        /// </summary>
        public long InventoryOrderId { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 产品单位
        /// </summary>
        public string ProductUnit { get; set; }

        /// <summary>
        /// 账面库存
        /// </summary>
        public decimal BookInventory { get; set; }

        /// <summary>
        /// 存储位置ID
        /// </summary>
        public long StorageLocationId { get; set; }

        /// <summary>
        /// 盘点数量
        /// </summary>
        public decimal InventoryQuantity { get; set; }

        /// <summary>
        /// 盈亏数量
        /// </summary>
        public decimal ProfitLossQuantity { get; set; }

        /// <summary>
        /// 参考单价
        /// </summary>
        public decimal ReferenceUnitPrice { get; set; }

        /// <summary>
        /// 盈亏金额
        /// </summary>
        public decimal ProfitLossAmount { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public string IsDelete { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public long CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public long UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 附件ID
        /// </summary>
        public long AttachmentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }




    }
}
